package demo1;

public class BankPay implements Pay {
    double m=100;

    @Override
    public void pay(double money) {
        if (m<money){
            System.out.println("您的金额不足");
        }
        else{
            m=m-money;
            System.out.println("您的金额为"+m);
        }

    }
}
